import {
	request
} from '@/pages_nbst/utils/request.js'

export const getFavQuestionsReq = () => {
	return request({
		url: `fav/questions`,
		method: 'get'
	})
}

export const favQeustionReq = (qId, data) => {
	return request({
		url: `question/${qId}/fav`,
		method: 'post',
		data
	})
}

export const getFavQuestionReq = () => {
	return request({
		url: `fav/question`,
		method: 'get'
	})
}

export const getMainChapterReq = (params) => {
	return request({
		url: `syllabus/chapter`,
		method: 'get',
		params
	})
}

export const getChapterFavQuestionReq = (params) => {
	return request({
		url: `fav/chapter/question`,
		method: 'get',
		params
	})
}

export const getWrongQuestionStatReq = () => {
	return request({
		url: `wrong/question/stat`,
		method: 'get',
	})
}


export const getWrongQuestionStat1Req = () => {
	return request({
		url: `wrong/question/stat1`,
		method: 'get',
	})
}

export const getWrongPointStatReq = (params) => {
	return request({
		url: `wrong/point/stat`,
		method: 'get',
		params
	})
}
export const getWrongPointStat1Req = (params) => {
	return request({
		url: `wrong/point/stat/top`,
		method: 'get',
		params
	})
}

export const getWrongPointQuestionReq = (params) => {
	return request({
		url: `wrong/point/question`,
		method: 'get',
		params
	})
}

export const wrongQuestionReExamReq = (data) => {
	return request({
		url: `wrong/question/reexam`,
		method: 'post',
		data,
	})
}

export const getStudentReq = (params) => {
	return request({
		url: `user/student`,
		method: 'get',
		params,
	})
}


export const getUserExamReq = (params) => {
	return request({
		url: `userexam1`,
		method: 'get',
		params
	})
}